NonSync

annotation class NonSync

Excludes an element of a Config from synchronization.

A NonSync element won't be synced back and forth between server and client, and WithPerms and ClientModifiable won't have any affect. This is primarily useful for values that are client-specific: The color of something, the position of a GUI element. Things you don't want the server to overwrite every time the player joins, rather their local config that is loaded on launch takes precedent in those cases.

NonSync elements will automatically act like ClientModifiable, as they won't be synced anyway.

Order of precedence:

  1. NonSync

  2. ClientModifiable (Annotating config class itself)

  3. ClientModifiable (specific setting annotation)

  4. WithCustomPerms (specific setting annotation)

  5. WithPerms (specific setting annotation)

  6. WithCustomPerms (Annotating config class itself)

  7. WithPerms (Annotating config class itself)

  8. Config.defaultPermLevel

Author

fzzyhmstrs

Since

0.2.0